<!--
  @author yangjiangming
  @date 2018-12-10 20:40:28
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html th:replace="~{work/modify/common/layout :: layout('完成', ~{::title}, ~{::content}, ~{::script})}"
      xmlns:th="http://www.springframework.org/schema/mvc">
<head>
    <title>工单管理-完成</title>
</head>
<body>

<div th:fragment="content">

    <style>
        .d-bg-ali,.d-bg-wechat,.d-bg-bank{
            display: inline-block;
            vertical-align: middle;
            margin-right: 5px;
            margin-bottom: 8px;
            width: 20px;
            height: 20px;
            background: url("/static/images/pay_icon_sprites.png") no-repeat left center;
        }
        .d-bg-wechat{
            background: url("/static/images/pay_icon_sprites.png") no-repeat -20px center;
        }
        .d-bg-bank{
            background: url("/static/images/pay_icon_sprites.png") no-repeat -40px center;
        }
    </style>
    <form class="layui-form">
        <input type="text" name="workId" th:value="${orderWork.workId}" hidden>
        <input type="text" name="orderId" th:value="${orderWork.orderId}" hidden>
        <input type="hidden" name="bizType" th:value="${orderWork.bizType}">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">订单金额</label>
                <div class="layui-input-inline" style="width: auto">
                    <span class="layui-btn layui-btn-disabled " id="originalAmount">00.00</span>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">订单收入</label>
                <div class="layui-input-inline" style="width: auto">
                    <span class="layui-btn layui-btn-disabled " id="totalAmount">00.00</span>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label" style="width: 100px;">工程师收款金额</label>
                <div class="layui-input-inline" style="width: auto">
                    <span class="layui-btn layui-btn-disabled " id="masterAmount">00.00</span>
                </div>
            </div>
        </div>
        <div class="layui-form-item" th:if="${needCompleteCode == true}">
            <div class="layui-inline">
                <label class="layui-form-label">完成码</label>
                <div class="layui-input-inline" style="width: auto">
                    <input type="text" class="layui-input" name="completeCode" id="completeCode"
                           placeholder="输入完成码" autocomplete="off"
                           lay-verify="non-empty" th:value="${completeCode}">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-inline" style="width: auto">
                <button id="confirmbtn" type="button" class="layui-btn" lay-submit lay-filter="confirmbtn">保存</button>
                <span>完成后，将不可变更订单相关信息</span>
            </div>
        </div>
    </form>

</div>

<script th:inline="javascript">
    var orderWork = [[${orderWork}]];
    var layuiModel = {
        oms_work_modify_service_complete: "work/modify/zmn.oms.work.modify.servicecomplete"
    };
</script>
</body>
</html>
